

<?php 
$pageTitle = "Register";
include_once "common/header.php"; 
?>
<link rel="stylesheet" type="text/css" href="css/themes/signup_page.css" >
	<?php 
		if(!empty($_POST['email']) && !empty($_POST['password'])):
        include_once "common/inc/class.users.inc.php";
        $users = new GenericUser($db);
        echo $users->createAccount();
    else:

	?>
		
    <article id="signup_container">
		<form method="post" action="signup.php" id="signup">
			<h1>Welcome to ComicBlocks!</h1>
			<input type="email" placeholder="Email" required="" name = "email">
			<input type="password" placeholder="Choose your password" required="" name = "password">
			<input type="password" placeholder="Confirm password" required="">					
			<button type="submit">Sign up</button>	
		</form>
            	
               
    </article>
      
</body>

<?php
    endif;
    
?>
</html>
